<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
    'as'            => config('admin.route.prefix') . '.',
], function (Router $router) {

    //今日总收益
//    $router->resource('/', DateEarningsController::class);
    //产品列列表
//    $router->resource('/', ProductGoodsController::class);
//    $router->get('/', function (){
//        return  Redirect::to('admin/product-order');
//    });
    $router->resource('/product', ProductGoodsController::class);
    //默认首页
    $router->get('/', 'HomeController@index')->name('home');
    $router->get('/getworklist', 'WorkListController@index')->name('getworklist');
    $router->get('/getworkconsultlist', 'WorkListController@getWorkConsultList')->name('getWorkConsultList');
    $router->get('/getworkfollowlist', 'WorkListController@getWorkFollowList')->name('getWorkFollowList');
    $router->get('/getworkaddconsultlist', 'WorkListController@getWorkAddConsultList')->name('getWorkAddConsultList');
    $router->get('/getdiseasetypelist', 'WorkListController@getDiseaseTypeList')->name('getDiseaseTypeList');
    $router->get('/getworkcreatenumberlist', 'WorkListController@getWorkCreateNumberList')->name('getWorkCreateNumberList');
    //获取工作室列表明细
//    $router->resource('/getworklist', WorkListController::class);
    //订单列表
    $router->resource('/product-order', OrderController::class);
    //审核通过
    $router->resource('/approve', ApproveController::class);
    //同意退款
    $router->resource('/agree', AgreeController::class);
    //拒绝退款
    $router->resource('/refuse', RefuseController::class);
    //售后列表
    $router->resource('/reimburse', ReimburseController::class);
    //发票
    $router->resource('/orderinvoice', OrderInvoiceController::class);
    //退货地址管理
    $router->resource('/returnaddress', ReturnaddressController::class);
    //添加支付宝账号
    $router->resource('/alipayadd', AlipayaccountController::class);
    //提现申请
    $router->resource('/withdrawal-logs', WithdrawalLogController::class);


});
